package com.ffxnh.bean;

/**
 * 宝马车
 *
 * @author zhaopeng
 * @since 2025/02/09
 */
public class Bmw extends Car {

    public Bmw(String name) {
        this.name = name;
    }

    @Override
    public void display() {
        System.out.println("我是宝马，我的名字是：" + getName());
    }
}
